$( document ).ready(function() {
	// Handler for .ready() called.
	if($("#usercontact-registration-form").length > 0) {
		$("#usercontact-registration-form").validate({
			rules: {
				"guiUserContact.telNo": {
					required: true,
					number: true
				},
				"guiUserContact.address": {
					required: true
				}
			},
			
			messages: {
				"guiUserContact.telNo": {
					required: "Please specify the telephone number"
				},
				"guiUserContact.address": {
					required: "Please specify the address"
				}
			},
			
			submitHandler: function(form) { 
				form.submit();  
			}
		});
	}
	
});